package com.nodecollege.cloud.dao.mapper;

import com.nodecollege.cloud.common.model.po.UpmsOpRoleAdmin;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 版权：节点学院
 * <p>
 * UpmsOpRoleAdminMapper
 *
 * @author LC
 * @date 2020-02-16 23:27:11
 */
@Mapper
@Component
public interface UpmsOpRoleAdminMapper {
    /**
     * 根据主键删除数据
     *
     * @param opRoleAdminId Integer
     * @return int
     */
    int deleteByPrimaryKey(Long opRoleAdminId);

    /**
     * 插入数据库记录（不建议使用）
     *
     * @param record UpmsOpRoleAdmin
     * @return int
     */
    int insert(UpmsOpRoleAdmin record);

    /**
     * 根据主键id查询
     *
     * @param opRoleAdminId Integer
     * @return UpmsOpRoleAdmin
     */
    UpmsOpRoleAdmin selectByPrimaryKey(Long opRoleAdminId);

    /**
     * 查询运营角色管理员数据
     *
     * @param record
     * @return
     */
    List<UpmsOpRoleAdmin> selectListByOpRoleAdmin(UpmsOpRoleAdmin record);
}